function testfunction = GSLpp_get_testfunction(name, testfunctions)
  for j = 1:length(testfunctions)
    if strcmp(name, testfunctions{j}.name) == 1
      testfunction = testfunctions{j};
      return;
    endif
  endfor
  
  testfunction = [];
endfunction
